Faster Algorithms for Bound-Consistency of the Sortedness and the Alldifferent Constraint

نویسندگان

  • Kurt Mehlhorn
  • Sven Thiel
چکیده

We present narrowing algorithms for the sortedness and the alldifferent constraint which achieve bound-consistency. The algorithm for the sortedness constraint takes as input 2n intervals X1, . . . , Xn, Y1, . . . , Yn from a linearly ordered set D. Let S denote the set of all tuples t ∈ X1 × · · · × Xn × Y1 × · · · × Yn such that the last n components of t are obtained by sorting the first n components. Our algorithm determines whether S is non-empty and if so reduces the intervals to bound-consistency. The running time of the algorithm is asymptotically the same as for sorting the interval endpoints. In problems where this is faster than O(n log n), this improves upon previous results. The algorithm for the alldifferent constraint takes as input n integer intervals Z1, . . . , Zn. Let T denote all tuples t ∈ Z1 × · · · × Zn where all components are pairwise different. The algorithm checks whether T is non-empty and if so reduces the ranges to bound-consistency. The running time is also asymptotically the same as for sorting the interval endpoints. When the constraint is for example a permutation constraint, i.e. Zi ⊆ [1;n] for all i, the running time is linear. This also improves upon previous results. 1 The Sortedness Constraint

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

A Probabilistic Study of Bound Consistency for the Alldifferent Constraint

This paper introduces a mathematical model for bound consistency of the constraint AllDifferent. It allows us to compute the probability that the filtering algorithm effectively removes at least one value in the variable domains. A complete study of the bound consistency properties is then proposed. It identifies several behaviors depending on some macroscopic quantities related to the variable...

متن کامل

When is it worthwhile to propagate a constraint? A probabilistic analysis of AllDifferent

This article presents new work on analyzing the behaviour of a constraint solver, with a view towards optimization. In Constraint Programming, the propagation mechanism is one of the key tools for solving hard combinatorial problems. It is based on specific algorithms: propagators, that are called a large number of times during the resolution process. But in practice, these algorithms may often...

متن کامل

Propagating Conjunctions of AllDifferent Constraints

We study propagation algorithms for the conjunction of two ALLDIFFERENT constraints. Solutions of an ALLDIFFERENT constraint can be seen as perfect matchings on the variable/value bipartite graph. Therefore, we investigate the problem of finding simultaneous bipartite matchings. We present an extension of the famous Hall theorem which characterizes when simultaneous bipartite matchings exists. ...

متن کامل

A Fast and Simple Algorithm for Bounds Consistency of the AllDifferent Constraint

In constraint programming one models a problem by stating constraints on acceptable solutions. The constraint model is then usually solved by interleaving backtracking search and constraint propagation. Previous studies have demonstrated that designing special purpose constraint propagators for commonly occurring constraints can significantly improve the efficiency of a constraint programming a...

متن کامل

An O(nlog n) Bound Consistency Algorithm for the Conjunction of an alldifferent and an Inequality between a Sum of Variables and a Constant, and its Generalization

This paper gives an O(n log n) bound-consistency filtering algorithm for the conjunction alldifferent(V0, V1, . . . , Vn−1) ∧ f(V0)⊕ f(V1)⊕ · · · ⊕ f(Vn−1) ≤ cst , (V0, V1, . . . , Vn−1, cst ∈ N ), where (N,⊕) is a commutative group, f is a unary function, and both ⊕ and f are monotone increasing. This complexity is equal to the complexity of the bound-consistency algorithm of the alldifferent ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2000